package com.device.dataobject.device;

import com.device.entity.UserDevice;
import com.vladmihalcea.hibernate.type.json.JsonStringType;
import lombok.Data;
import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;

import javax.persistence.Column;
import java.util.List;

@Data
@TypeDef(name = "json", typeClass = JsonStringType.class)
public class DeviceDetail {

    private String area;
    private Integer rentPrice;
    @Type(type="json")
    @Column(columnDefinition = "json")
    private List<UserDevice> userDevices;

}

